﻿using System;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace SABnzbdNET.Model
{
    [Serializable, XmlRoot("history")]
    public class ServerHistory
    {
        [XmlElement(ElementName = "status")]
        public string Status { get; set; }

        [XmlElement(ElementName = "total_size")]
        public string DownloadTotal { get; set; }

        [XmlElement(ElementName = "month_size")]
        public string DownloadMonth { get; set; }

        [XmlElement(ElementName = "week_size")]
        public string DownloadWeek { get; set; }

        [XmlElement(ElementName = "uptime")]
        public string Uptime { get; set; }
        
        [XmlArray(ElementName = "slots")]
        [XmlArrayItem(ElementName = "slot", Type = typeof(FinishedJob))]
        public List<FinishedJob> FinishedJobs { get; set; }
    }
}
